﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="application.aspx.cs" Inherits="admin_application" MasterPageFile="~/admin/MasterPage2.master" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">


    <table width="1100px" bgcolor="White" cellpadding="0" cellspacing="0">
    <!-- Encabezado -->
    <tr bgcolor="#FA7E02" class="letracuadroscolores">
        <td colspan="4">Edit Page </td>
    </tr>
    </table>

    <table width="1100px" bgcolor="White">          
    <!-- Cuerpo -->
     <tr align="center">
        <td class="style3">
        <table width="550px"  cellpadding="0" cellspacing="0">
            <tr>
                <td align="left" class="style15" colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td align="left" class="style15" colspan="2">
                    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
                </td>
            </tr>
            
            <tr>
                <td align="left" colspan="2">&nbsp;</td>
            </tr>
            <tr align="center">
                <td align="center" valign="top" colspan="2">
                    <asp:Panel ID="Panel1" runat="server" style="text-align:center">
                        <asp:Accordion ID="Accordion1" runat="server" HeaderCssClass="accordion" HeaderSelectedCssClass="accordionSelected"></asp:Accordion>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <table style="margin-top:10px">
                        <tr>
                            <td align="center">
                                <asp:LinkButton ID="LinkButton2" runat="server" CssClass="button_save" 
                                    ForeColor="White" onclick="LinkButton2_Click"><span>Back</span></asp:LinkButton>
                                <asp:LinkButton ID="lnk_edit_section" runat="server" CssClass="button2_ok" onclick="lnk_edit_section_Click"><span>Edit Section</span></asp:LinkButton>
                                <asp:LinkButton ID="lnk_add" runat="server" CssClass="button2_ok" ForeColor="White" onclick="lnk_add_Click" ><span>Add New</span></asp:LinkButton>
                                <asp:LinkButton ID="lnk_delete" runat="server" CssClass="button_save" ForeColor="White" onclick="lnk_delete_Click"><span>Delete</span></asp:LinkButton>
                                <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText="Are you sure the page needs to be deleted?" Enabled="True" TargetControlID="lnk_delete"></asp:ConfirmButtonExtender>
                                <asp:LinkButton ID="lnk_save" runat="server" CssClass="button_save" ForeColor="White" onclick="lnk_save_Click"><span>Save</span></asp:LinkButton>
                            </td>
                        </tr>
                    </table><asp:TextBox ID="tb_role" runat="server" Width="170px"></asp:TextBox>
                </td>
            </tr>
            
            <tr>
                <td>
                <asp:Panel ID="panel_add" runat="server" style="box-shadow: 0 0 15px #ffffff">
                <table align="center" cellpadding="0" cellspacing="0" style="border-color:Black; border-style:ridge; border-width:3px; min-width:350px" bgcolor="white">
                <tr>
                    <td>
                    <table align="center" class="style1" style="border: thin groove #FFCC99;">
                    <tr>
                        <td class="style2" bgcolor="#FA7E02" colspan="2" style="font-size:20px; font-family:Arial;">
                            <strong>New Option</strong></td>
                    </tr>
                    <tr>
                        <td> &nbsp;</td>
                    </tr>
                    <tr align="left">
                        <td style="font-weight:bold; font-size:15px; font-family:Arial; padding-left:10px">Name:</td>
                        <td> <div>
                            <asp:TextBox ID="tb_application" runat="server" Width="200px" CssClass="txtForm" style="font-size:14px; font-family:Arial;"></asp:TextBox></div>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <asp:Label ID="Label1" runat="server" CssClass="letraRojaValidacion" Text="Required Field" Visible="False"></asp:Label>&nbsp;</div>
                        </td>
                    </tr>
                    <tr align="left">
                        <td valign="top" style="font-weight:bold; font-size:15px; font-family:Arial; padding-left:10px;">Section:</td>
                        <td>
                            <asp:RadioButtonList runat="server" ID="rb_cat"></asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2"> 
                            <table>
                                <tr>
                                    <td align="center">
                                        <asp:LinkButton ID="LinkButton1" runat="server" CssClass="button_save" ForeColor="White"><span>Cancel</span></asp:LinkButton>
                                        <asp:LinkButton ID="lnk_addoption" runat="server" CssClass="button2_ok" ForeColor="White" onclick="lnk_addoption_Click"><span>Add Option</span></asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center"> &nbsp;</td>
                    </tr>
                    </table>
                    </td>
                </tr> 
                </table>
                </asp:Panel>

                <asp:modalpopupextender ID="bthide_ModalPopupExtender" runat="server" DynamicServicePath="" Enabled="True" TargetControlID="bt_hide" PopupControlID="panel_add" BackgroundCssClass="FondoAplicacion"></asp:modalpopupextender>
                <asp:ImageButton ID="bt_hide" runat="server" ImageUrl="~/blank.gif" />

                </td>
            </tr>

            <tr>
                <td>
                    <asp:Panel ID="Panel_Edit" runat="server" style="box-shadow: 0 0 15px #ffffff">
                    <table align="center" cellpadding="0" cellspacing="0" style="border-color:Black; border-style:ridge; border-width:3px; min-width:350px" bgcolor="white">
                        <tr>
                            <td>
                                <table align="center" class="style1" style="border: thin groove #FFCC99;">
                                <tr>
                                    <td class="style2" bgcolor="#FA7E02" colspan="2" style="font-size:20px; font-family:Arial;"><strong>Edit Option</strong></td>
                                </tr>
                                <tr>
                                    <td> &nbsp;</td>
                                </tr>
                                <tr align="left">
                                    <td style="font-weight:bold; font-size:15px; font-family:Arial; padding-left:10px">Name:</td>
                                    <td><div><asp:TextBox ID="tb_role2" runat="server" CssClass="txtForm" Width="200px"  style="font-size:14px; font-family:Arial;"></asp:TextBox></div></td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Label ID="Label2" runat="server" CssClass="letraRojaValidacion" Text="Required Field" Visible="False"></asp:Label>&nbsp;</div>
                                    </td>
                                </tr>
                                <tr align="left">
                                    <td style="font-weight:bold; font-size:15px; font-family:Arial; padding-left:10px"></td>
                                    <td style="font-weight:bold; font-size:15px; font-family:Arial;"><div>
                                        <asp:CheckBox ID="chk_movCat" runat="server" Text="Move Section" 
                                            AutoPostBack="True" oncheckedchanged="chk_movCat_CheckedChanged" /></div></td>
                                </tr>
                                <tr align="left">
                                    <td valign="top" style="font-weight:bold; font-size:15px; font-family:Arial; padding-left:10px;"><asp:Label ID="lb_move_cat" runat="server" Text="Section:" Visible="false"></asp:Label></td>
                                    <td>
                                        <asp:RadioButtonList runat="server" ID="rb_move_cat" Visible="false"></asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2"> &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2"> 
                                    <table>
                                        <tr>
                                            <td align="center">
                                                <asp:LinkButton ID="lnk_canceloption" runat="server" CssClass="button2_ok"><span>Cancel</span></asp:LinkButton>
                                                <asp:LinkButton ID="lnk_delete_option" runat="server" CssClass="button2_ok" 
                                                    onclick="lnk_delete_option_Click"><span>Delete</span></asp:LinkButton>&nbsp;
                                                <asp:LinkButton ID="lnk_save_option" runat="server" CssClass="button2_ok" 
                                                    onclick="lnk_save_option_Click"><span>&nbsp;Save&nbsp;</span></asp:LinkButton>
                                                <asp:ConfirmButtonExtender ID="ConfirmButtonExtender2" runat="server" ConfirmText="Are you sure the option needs to be deleted?" Enabled="true" TargetControlID="lnk_delete_option"></asp:ConfirmButtonExtender>
                                            </td>
                                        </tr>
                                    </table>
                                    </td>
                                </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    </asp:Panel>

                    <asp:modalpopupextender ID="bt_hide2_ModalPopupExtender1" runat="server" DynamicServicePath="" Enabled="True" TargetControlID="bt_hide2" PopupControlID="Panel_Edit" BackgroundCssClass="FondoAplicacion"></asp:modalpopupextender>
                    <asp:ImageButton ID="bt_hide2" runat="server" ImageUrl="~/blank.gif" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="PEdit_Section" runat="server" style="box-shadow: 0 0 15px #ffffff">
                    <table align="center" cellpadding="0" cellspacing="0" style="border-color:Black; border-style:ridge; border-width:3px; min-width:350px" bgcolor="white">
                        <tr>
                            <td>
                                <table align="center" class="style1" style="border: thin groove #FFCC99;">
                                <tr>
                                    <td class="style2" bgcolor="#FA7E02" colspan="2" style="font-size:20px; font-family:Arial;"><strong>Section</strong></td>
                                </tr>
                                <tr>
                                    <td> &nbsp;</td>
                                </tr>
                                <tr align="left">
                                    <td style="font-weight:bold; font-size:15px; font-family:Arial; padding-left:10px">Name:</td>
                                    <td><div><asp:TextBox ID="tb_editsection" runat="server" CssClass="txtForm" Width="200px"  style="font-size:14px; font-family:Arial;"></asp:TextBox></div></td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Label ID="Label3" runat="server" CssClass="letraRojaValidacion" Text="Required Field" Visible="False"></asp:Label>&nbsp;</div>
                                    </td>
                                </tr>
                                <tr align="left">
                                    <td style="font-weight:bold; font-size:15px; font-family:Arial; padding-left:10px"></td>
                                    <td style="font-weight:bold; font-size:15px; font-family:Arial;"><div>
                                        <asp:CheckBox ID="chk_editsection" runat="server" Text="Edit Section" 
                                            AutoPostBack="True" oncheckedchanged="chk_editsection_CheckedChanged"  /></div></td>
                                </tr>
                                <tr align="left">
                                    <td valign="top" 
                                        style="font-weight:bold; font-size:15px; font-family:Arial; padding-left:10px;" ><asp:Label ID="lb_editsection" runat="server" Text="Section:" Visible="false"></asp:Label></td>
                                    <td>
                                        <asp:RadioButtonList runat="server" ID="rb_editsection" Visible="false" 
                                            AutoPostBack="True" 
                                            onselectedindexchanged="rb_editsection_SelectedIndexChanged"></asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2"> &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2"> 
                                    <table>
                                        <tr>
                                            <td align="center">
                                                <asp:LinkButton ID="Lnk_DeleteSection" runat="server" CssClass="button_save" 
                                                    Visible="false" onclick="Lnk_DeleteSection_Click"><span>Delete</span></asp:LinkButton>&nbsp;
                                                <asp:ConfirmButtonExtender ID="ConfirmButtonExtender3" runat="server" ConfirmText="Are you sure the section needs to be deleted?" Enabled="true" TargetControlID="Lnk_DeleteSection"></asp:ConfirmButtonExtender>
                                                <asp:LinkButton ID="Lnk_SaveSection" runat="server" CssClass="button_save" 
                                                    Visible="false" onclick="Lnk_SaveSection_Click" ><span>Save</span></asp:LinkButton>
                                                <asp:LinkButton ID="LnK_CancelSection" runat="server" CssClass="button_save"><span>Cancel</span></asp:LinkButton>
                                                <asp:LinkButton ID="LnK_AddSection" runat="server" CssClass="button_save" 
                                                    onclick="LnK_AddSection_Click"><span>Add</span></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                    </td>
                                </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    </asp:Panel>

                    <asp:modalpopupextender ID="bt_hide3_Modalpopupextender" runat="server" DynamicServicePath="" Enabled="True" TargetControlID="bt_hide3" PopupControlID="PEdit_Section" BackgroundCssClass="FondoAplicacion"></asp:modalpopupextender>
                    <asp:ImageButton ID="bt_hide3" runat="server" ImageUrl="~/blank.gif" />
                </td>
            </tr>
            </table>
        </td>
                                
     </tr>
     <tr>
        <td colspan="4" align="center">
         &nbsp;&nbsp;
            </td>
     </tr>
     <!-- footer -->
     <tr>
        <td class="style3"></td><td></td><td></td><td></td>
     </tr>
</table>
</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
    <style type="text/css">

        .style1
        {
            width: 100%;
            border-collapse: collapse;
            border-left-style: solid;
            border-left-width: 1px;
            border-right: 1px solid #C0C0C0;
            border-top-style: solid;
            border-top-width: 1px;
            border-bottom: 1px solid #C0C0C0;
        }
         
        .style2
        {
            /*font-family:MS Reference Sans Serif;*/
	    font-family: Arial Narrow;
            font-weight: bold;
            font-size: 14px;
            color: #FFFFFF;
            font-style: normal;
            vertical-align: top;
            text-align: center;
        }
         
        .style3
        {
            width: 1111px;
        }
         
        .style4
        {
            height: 28px;
        }
         
        </style>
        <script type="text/javascript">

            function pergunta() {

                if (confirm("Deseja confirmar essa operação?")) {

                    return true;

                } else {

                    return false;

                }

            }

    </script>
   
</asp:Content>
